package com.axxy.factory;

/**
 * @author 一缕茜阳
 * @date 2021/7/27
 */
public class FriedYogurtStore {

    private FriedYogurtFactory factory;

    public FriedYogurtStore(FriedYogurtFactory factory) {
        this.factory = factory;
    }

    public void setFactory(FriedYogurtFactory factory) {
        this.factory = factory;
    }

    public FriedYogurtFactory getFactory() {
        return factory;
    }

    public FriedYogurt orderFriedYogurt(String material) {
        return factory.makseFriedYogurt(material);
    }

}
